{include file="common/header.tpl"}
<section class="main">
	<nav class="left-col">
    	{include file="common/navi-system.tpl"}
    </nav>
    <article class="right-col">
    	<h2><a href="{$smarty.const.HOST_BACKEND}admin/index">Thành viên Ban Quản Trị</a> &raquo; Thêm mới</h2>
        <form name="frmAdd" id="frmAdd" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}admin/save" class="ui">
            {if $AppUI->type == 1}
                <input type="hidden" value="0" id="ptype" name="ptype" />
            {/if}
            <ul>
            	<li>
                	<label for="pusername">Username <span class="required">*</span>:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="pusername" id="pusername" value="{if isset($smarty.session.post.pusername)}{$smarty.session.post.pusername}{/if}" />
                	</div>
                </li>
                <li>
                	<label for="ppassword">Mật khẩu <span class="required">*</span>:</label>
                    <div class="txt">
	                	<input type="password" class="text" name="ppassword" id="ppassword" value="" />
                	</div>
                </li>
                <li>
                	<label for="ppassword_confirm">Xác nhận mật khẩu <span class="required">*</span>:</label>
                    <div class="txt">
                		<input type="password" class="text" name="ppassword_confirm" id="ppassword_confirm" value="" />
                   	</div>
                </li>
                <li>
                	<label for="pfullname">Họ &amp; tên:</label>
                    <div class="txt">
                		<input type="text" class="text" name="pfullname" id="pfullname" value="{if isset($smarty.session.post.pfullname)}{$smarty.session.post.pfullname}{/if}" />
                   	</div>
                </li>
                {if $AppUI->type > 1}
                	<li>
                    	<label for="pfullname">Loại thành viên quản trị:</label>
                        <div class="sel">
                            <select name="ptype" id="ptype">
                                {if isset($smarty.session.post.ptype)}
                                    {html_options options=$arrType selected=$smarty.session.post.ptype}
                                {else}
                                    {html_options options=$arrType}
                                {/if}
                            </select>
                       	</div>
                    </li>
                 {/if}   
                 <li>
                 	<button type="submit"><strong>Lưu dữ liệu</strong></button>
                    <button type="reset"><strong>Nhập lại</strong></button>
                 </li>
            </ul>
        </form>
    </article> 
</section>
{include file="common/footer.tpl"}
                
